home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_1.3 / Include-Strip1.3 / include.h / devices / timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-15  |  421 b   |  21 lines

  1. #ifndef    DEVICES_TIMER_H
  2. #define    DEVICES_TIMER_H
  3. #ifndef    EXEC_IO_H
  4. #include    "exec/io.h"
  5. #endif    EXEC_IO_H
  6. #define    UNIT_MICROHZ    0
  7. #define    UNIT_VBLANK    1
  8. #define    TIMERNAME    "timer.device"
  9. struct    timeval    {
  10. ULONG    tv_secs;
  11. ULONG    tv_micro;
  12. };
  13. struct    timerequest    {
  14. struct    IORequest    tr_node;
  15. struct    timeval    tr_time;
  16. };
  17. #define    TR_ADDREQUEST    CMD_NONSTD
  18. #define    TR_GETSYSTIME    (CMD_NONSTD+1)
  19. #define    TR_SETSYSTIME    (CMD_NONSTD+2)
  20. #endif
  21.